#导包
import time
from selenium import webdriver
from selenium.webdriver.common.by import By
#创建驱动
driver = webdriver = webdriver.Edge()

time.sleep(3)

#访问百度
driver.get("https://www.baidu.com")
time.sleep(3)
#定位输入框，输入“原神赚了多少钱”
driver.find_element(By.NAME,"wd").send_keys("原神赚了多少钱")
time.sleep(3)
#定位“百度一下”按钮，点击。
driver.find_element(By.ID,"su").click()
#休息5秒
time.sleep(5)
#退出
driver.quit()
